package com.example.stu.kudestu.stu.service;

import com.example.stu.kudestu.stu.entity.User;
import org.springframework.data.domain.Page;

import java.util.List;

public interface UserService {

    List<User> findAll();

    User findUserById(int id);

    User save(User user);

    User update(User user);

    void delete(int id );

    User login(String username,String password);

    Page<User> findByPage(int page, int pagesize);

}
